@extends('public')

@section('link')
    <link rel="stylesheet" href="/css/game.css">
@endsection

@section('module' , 'Game')

@section('content')
    <div class="content">
        <div class="warp">
            <ul>
                @foreach($data as $value)
                    <li>
                        <div class="top">
                            <p><a href="/Module_C/game/:{{$value->slug}}">{{$value->title}}</a></p>
                            <p>by {{$value->autor->username}}</p>
                            @if($value->is_ban != null)
                                <p class="del">Deleted</p>
                            @endif
                            <p>Created in {{$value->created_at}}</p>
                        </div>
                        <div class="bottom">
                            <p>{{$value->description}}</p>
                        </div>
                    </li>
                @endforeach
            </ul>
        </div>
    </div>
@endsection
